<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags"  prefix="s"%>
<%
	request.setAttribute("root", request.getContextPath());
 %>
<!DOCTYPE HTML>

<html>
<head>

<title>NetCTOSS</title>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	<link rel="stylesheet" type="text/css" href="../styles/global.css">
	<link rel="stylesheet" type="text/css" href="../styles/global_color.css">
	<script type="text/javascript">
		function change(image){
			image.src = "../login/createImage?name="+Math.random();
		}
	</script>
</head>

<body class="index">
	<div class="login_box">
		<form action="${root }/login/loginVaild" method="post">
			<table>
				<tr>
					<td class="login_info">账号：</td>
					<td colspan="2"><input name="adminCode" type="text"
						class="width150" value="<s:property value="adminCode"/>"/>
					</td>
					<td class="login_error_info"><span class="required">30长度的字母、数字和下划线</span>
					</td>
				</tr>
				<tr>
					<td class="login_info">密码：</td>
					<td colspan="2"><input name="password"
						type="password" class="width150" value="<s:property value="password"/>"/>
					</td>
					<td><span class="required">30长度的字母、数字和下划线</span>
					</td>
				</tr>
				<tr>
					<td class="login_info">验证码：</td>
					<td class="width70"><input name="verifyCode" type="text" class="width70" />
					</td>
					<td><img src="../login/createImage" alt="验证码" title="点击更换" onclick="change(this);"/>
					</td>
					<td><span class="required"></span>
					</td>
				</tr>
				<tr>
					<td></td>
					<td class="login_button" colspan="2"><a href="javascript:document.forms[0].submit();"> <img
							src="../images/login_btn.png" /> </a></td>
					<td><span class="required"><s:property value="errorMsg" /></span>
					</td>
				</tr>
			</table>

		</form>

	</div>
</body>
</html>
